require 'highline/import'

class Ctxt
	RED = HighLine::RED;B_RED = HighLine::BRIGHT_RED
	ON_RED = HighLine::ON_RED;ON_B_RED = HighLine::ON_BRIGHT_RED
	
	BLACK = HighLine::BLACK;B_BLACK = HighLine::BRIGHT_BLACK
	ON_BLACK = HighLine::ON_BLACK;ON_B_BLACK = HighLine::ON_BRIGHT_BLACK
	
	GREEN = HighLine::GREEN;B_GREEN = HighLine::BRIGHT_GREEN
	ON_GREEN = HighLine::ON_GREEN;ON_B_GREEN = HighLine::ON_BRIGHT_GREEN
	
	BLUE = HighLine::BLUE;B_BLUE = HighLine::BRIGHT_BLUE
	ON_BLUE = HighLine::ON_BLUE;ON_B_BLUE = HighLine::ON_BRIGHT_BLUE
	
	YELLOW = HighLine::YELLOW;B_YELLOW = HighLine::BRIGHT_YELLOW
	ON_YELLOW = HighLine::ON_YELLOW;ON_B_YELLOW = HighLine::ON_BRIGHT_YELLOW
	
	WHITE = HighLine::WHITE;B_WHITE = HighLine::BRIGHT_WHITE
	ON_WHITE = HighLine::ON_WHITE;ON_B_WHITE = HighLine::ON_BRIGHT_WHITE
	
	PINK = HighLine::MAGENTA;B_PINK = HighLine::BRIGHT_MAGENTA
	ON_PINK = HighLine::ON_MAGENTA;ON_B_PINK = HighLine::ON_BRIGHT_MAGENTA
	
	CYAN = HighLine::CYAN;B_CYAN = HighLine::BRIGHT_CYAN 			#蓝绿色
	ON_CYAN = HighLine::ON_CYAN;ON_B_CYAN = HighLine::ON_BRIGHT_CYAN
	
	@@ct = HighLine.new
	
	def color(msg,ft)
		printf @@ct.color(msg,ft)
	end
	
	def color_str(msg,ft)
		@@ct.color(msg,ft)
	end
=begin
	def method_missing(name,*arg)
		case name
			when :color
				printf(arg[0])
			else
				puts "unknow func for Ctxt..."
		end
	end
=end
end
